package dr.incomeapp.view;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import android.widget.TextView;
import dr.incomeapp.R;

public class OneLineView extends LinearLayout {

	public OneLineView(Context c, int value) {
		super(c);
		LayoutInflater mInflater = (LayoutInflater) c
				.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		mInflater.inflate(R.layout.one_line, this, true);
		setValue(value);
	}

	public void setValue(int value) {
		TextView tv = (TextView) this.findViewById(R.id.tvValue);
		tv.setText(value);
	}
}
